/* ---------- GRID VIEW ---------- */
.art-gallery .grid {
    columns: 5;                 /* number of columns */
    column-gap: 25px;
    padding: 20px;
}

.art-gallery .item {
    width: 100%;
    margin-bottom: 25px;
    cursor: pointer;
    break-inside: avoid;
}

.art-gallery .item img {
    width: 100%;
    border-radius: 6px;
    transition: 0.3s;
}

.art-gallery .item img:hover {
    transform: scale(1.03);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-main {
    position: relative;
    max-width: 70%;
    max-height: 80vh;
    margin-top: 40px;
}

.lightbox-main img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

/* NAV ARROWS */
.lightbox .nav {
    position: absolute;
    top: 50%;
    font-size: 40px;
    cursor: pointer;
    color: white;
    padding: 10px;
    user-select: none;
}

.lightbox .prev { left: -60px; }
.lightbox .next { right: -60px; }

/* CLOSE BUTTON */
.lightbox .close {
    position: fixed;
    right: 40px;
    top: 20px;
    font-size: 50px;
    cursor: pointer;
    color: white;
}

/* ---------- THUMBNAIL STRIP ---------- */
.thumb-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    justify-content: center;
}

.thumb-row img {
    height: 90px;
    margin: 0 8px;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 4px;
    transition: 0.2s;
}

.thumb-row img.active,
.thumb-row img:hover {
    opacity: 1;
    border: 3px solid #ff4e3b;
}
